package cn.itrip.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Setter;
import lombok.Getter;

/**
 * 图片表
 * @auth chendd
 * @date 2020/12/25 08:58
 */
@Setter
@Getter
@ApiModel
@TableName("itrip_image")
public class ItripImage {

    @TableField("id")
    @ApiModelProperty(value = "主键")
    private Long id;

    @TableField("type")
    @ApiModelProperty(value = "图片类型(0:酒店图片1:房间图片2:评论图片)")
    private String type;

    @TableField("targetId")
    @ApiModelProperty(value = "关联id")
    private Long targetId;

    @TableField("position")
    @ApiModelProperty(value = "图片s上传顺序位置")
    private Integer position;

    @TableField("imgUrl")
    @ApiModelProperty(value = "图片地址")
    private String imgUrl;

    @TableField("creationDate")
    @ApiModelProperty(value = "")
    private java.util.Date creationDate;

    @TableField("createdBy")
    @ApiModelProperty(value = "")
    private Long createdBy;

    @TableField("modifyDate")
    @ApiModelProperty(value = "")
    private java.util.Date modifyDate;

    @TableField("modifiedBy")
    @ApiModelProperty(value = "")
    private Long modifiedBy;

}
